package com.anzhen.springboot.activemq.queue;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * Created by zhenan on 2017-3-8.
 */
@Component
public class Consumer_1 {
    @JmsListener(destination = "sample.queue")
    public void receiveQueue(String text) {
        System.out.println("Consumer_1 接收到了:" + text);
    }
}
